package com.service;
import java.util.List;

import com.model.Works;
import com.util.PageBean;

public interface WorksService{
	
	//查询多条记录
	public List<Works> queryWorksList(Works works,PageBean page) throws Exception;
 
	//添加
	public int insertWorks(Works works) throws Exception ;
	
	//根据ID删除
	public int deleteWorks(int id) throws Exception ;
	
	//更新
	public int updateWorks(Works works) throws Exception ;
	
	//根据ID查询单条数据
	public Works queryWorksById(int id) throws Exception ;
	
	//得到记录总数
	int getCount(Works works);

}

